﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace ChatServer.DataBaseModel
{
    public class Users
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid UserId { get; set; }
        public string UserName { get; set; }
        public string UserEmail { get; set; }
        public string UserFirstName { get; set; }
        public string UserLastName { get; set; }
        public string UserLocation { get; set; }
        public decimal Latitude { get; set; }
        public decimal Longitude  { get; set; }
        public string UserCountry { get; set; }
        public string UserOccuopation { get; set; }
        public DateTime UserDOB { get; set; }
        public DateTime AccountCreatedDate { get; set; }
        public Gender Gender { get; set; }
        public string PasswordHash { get; set; }
        public bool IsActive { get; set; }

        public virtual ICollection<UserRoles> Roles { get; set; }
    }

    public enum Gender
    {
        Male,
        Female,
        NotSpecified
    }
}